"
"     _                _   _                __      _           
"  __| | ___ _ __  ___| |_(_)_ __  _   _   / /_   _(_)_ __ ___  
" / _` |/ _ \ '_ \/ __| __| | '_ \| | | | / /\ \ / / | '_ ` _ \ 
"| (_| |  __/ | | \__ \ |_| | | | | |_| |/ /  \ V /| | | | | | |
" \__,_|\___|_| |_|___/\__|_|_| |_|\__, /_/    \_/ |_|_| |_| |_|
"                                  |___/                        
"imap jk <ESC>
"let mapleader = "\<space>"
let mapleader = ";"
"set mouse=a
set nu
call plug#begin('~/.vim/plugged')
Plug 'ncm2/ncm2'
Plug 'ncm2/ncm2-bufword'
Plug 'sheerun/vim-polyglot'
Plug 'ncm2/ncm2-path'
Plug 'roxma/nvim-yarp'
Plug 'jiangmiao/auto-pairs' "补全括号
Plug 'morhetz/gruvbox'
Plug 'mhinz/vim-startify'
Plug 'ryanoasis/vim-devicons' "显示文件类型
Plug 'easymotion/vim-easymotion'
Plug 'liuchengxu/vim-clap' "vim 启动管理器
Plug 'junegunn/vim-slash' "搜索结果优化
"Plug 'bagrat/vim-buffet'
"Plug 'webdevel/tabulous'
Plug 'rbong/vim-crystalline'
Plug 'ludovicchabant/vim-gutentags'
Plug 'liuchengxu/vista.vim'
Plug 'mbbill/undotree'
Plug 'dm1try/golden_size' "自动设置大小
Plug 'voldikss/vim-floaterm' "浮动终端
Plug 'vim-airline/vim-airline'
Plug 'lambdalisue/suda.vim'
"Plug 'vim-airline/vim-airline-themes'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
"Plug 'itchyny/lightline.vim'
" Or build from source code by use yarn: https://yarnpkg.com
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()
set norelativenumber
set relativenumber
""显示隐藏字符

set invlist 

let g:python3_host_prog = '/path/to/python3' 
let g:loaded_python3_provider = 0 
"let g:asyncrun_open

"function! StatusLine(current, width)
"  let l:s = ''
"  if a:current
"    let l:s .= crystalline#mode() . crystalline#right_mode_sep('')
"  else
"    let l:s .= '%#CrystallineInactive#'
"  endif
"  let l:s .= ' %f%h%w%m%r '
"  if a:current
"    let l:s .= crystalline#right_sep('', 'Fill') . ' %{fugitive#head()}'
"  endif
"
"  let l:s .= '%='
"  if a:current
"    let l:s .= crystalline#left_sep('', 'Fill') . ' %{&paste ?"PASTE ":""}%{&spell?"SPELL ":""}'
"    let l:s .= crystalline#left_mode_sep('')
"  endif
"  if a:width > 80
"    let l:s .= ' %{&ft}[%{&fenc!=#""?&fenc:&enc}][%{&ff}] %l/%L %c%V %P '
"  else
"    let l:s .= ' '
"  endif
"
"  return l:s
"endfunction
"
"function! TabLine()
"  let l:vimlabel = has('nvim') ?  ' 👁 github@Gnglas ' : ' github@Gnglas '
" return crystalline#bufferline(2, len(l:vimlabel), 1) . '%=%#CrystallineTab# ' . l:vimlabel
"endfunction

"let g:crystalline_enable_sep = 1
"let g:crystalline_statusline_fn = 'StatusLine'
"let g:crystalline_tabline_fn = 'TabLine'
"let g:crystalline_theme = 'dracula'
"let g:airline#extensions#tabline#formatter = 'default'
"let g:airline#extensions#tabline#enabled = 0
"let g:airline#extensions#tabline#left_sep = ' '
"let g:airline#extensions#tabline#left_alt_sep = '|'


set showtabline=0
set guioptions-=e
set laststatus=2
"设置空闲行数
set scrolloff=10
if filereadable(expand($HOME . '/.config/nvim/init.config.vim'))
source /home/chroot/.config/nvim/init.config.vim 
endif
source $HOME/.config/nvim/init.config.vim
colorscheme gruvbox
"自定义配色
source $HOME/.config/nvim/mycolor.vim
